Inform 7.0 cookbook by TempodiBasic

Imagemap
Inform 7.0 cookbook
by TempodiBasic Interface Inform interface in which you can edit p ... Toolbar Inform Toolbar from which you can take t ... Label control that shows a text TextBox control that takes user's input type PasswordField: if true it masks with a c ... Caption to show text in Textbox before u ... Mask: 0 for each digit to input, any oth ... RawText$ returns only digits taken from  ... Text(textbox) returns digits plus HelpTe ... Min Max specify min/max number of charac ... NumberTextbox control that takes user's numeric input  ... No exponential numeric input Checkbox control that activates/disactivates a ta ... Radiobutton control that activates/disactivates a ta ... Listbox control that shows and manages a list of ... DropDownListBox control that shows and manages a list of ...  theItem% = Control(DropdownList1).Value ...  theItem$ = GetItem(DropdownList1, thisI ... TrackBar/Slider  control that shows a progression of the ... ProgressBar  control that shows a progression of the ... PictureBox control that creates a graphic panel/are ... Frame control that create a panel to group oth ... Toggle Switch control that activates/disactivates a ta ... Button  control that can be clicked to perform  ... Menu a system to create menu for window of th ... how to create menu? 1. right click on th ... 2. Edit your menu typing and using comma ... Q&A How to set/change focus after an user in ...  this example shows an ENTER by user's i ...  SUB __UI_KeyPress (id AS LONG)
       S ... TAB is also implemented in Inform to cha ... TAB is the default key to change focus i ... Must an application made by Inform be ad ... No, it is autoAdapted to different platf ... How can I force FrameRate? Using the line SetFrameRate you can set  ... Framerate is the frequency at what the E ... To avoid an infinite loop add __UI_DoEve ... SUB __UI_Click (id AS LONG)
    STATIC D ... How do I select an hidden control in the ... Reach Hidden control using TAB key navig ... How can I manage keyboard's input  overc ... __UI_KeyHit  in __UI_KeyPress in __UI_BeforeUpdateDisplay you must set ...  Inform variables avaible  are __UI_Ctrl ... _KeyDown in __UI_KeyPress and __UI_Focus ... _KeyHit in __UI_BeforeUpdateDisplay but  ... INKEY$ in __UI_BeforeUpdateDisplay How can I make control's array?  1. DIM SHARED MyControlArray(totalContr ... 2. you assign each index in that array t ... 3. When needed, you manipulate with Cont ... My version of this trick an example for multiple labels:
in MyPro ... How can I know if mouse is out or on a c ... Using MouseEnter and MouseLeave events a ... Be careful to use these events with form ... Why cannot I set Hotkey on runtime? Your control doesn't get the hotkey shor ... Is possible to use HotKeys? Yes in 2 ways the control that has the Focus reacts to ...  set a Control as default (by right-clic ... If you create a Control with a caption-h ... How can I show special characters like t ... 2 Ways 1. set standard font used for SCREEN 0   ... InForm beta 8.0 let us to use escape seq ... Use a symbol font like Webding or  Wingd ... Can I use image/icon for Button or MenuI ... Yes with these rules Any image size for Buttons 16X16 image size for MenuItems How can I poll mouse's information in In ... Inform has different ways to investigate ... Events: 
 __UI_MouseUp: is true if mouse ... Variables:
__UI_MouseLeft : is like _Mou ... No managment of _MouseButton(3) for clic ... How can I do MessageBox? FUNCTION MessageBox& (Message$, Title$,  ... How can I resize Screen by code? 2 ways Control(__UI_FormID).Width = (whatever w ... Control(__UI_FormID).CanResize = True  l ... My Trick:
type at beginning of MyProgram ... Bugs & Issue Inform 7.0 to edit a property I must confirm with E ... Drag a Frame control into another Frame  ... Use Z-Order window to order Frames and p ... Incompatible versus previous versions Add a new evend handler SUB __UI_FormResized
END SUB method SetFont has lost its last paramet ... Label has no autosize at runtime, only a ... CanResize only for Form Multiline property only for TextBox not  ... Form: no multiform to use with Inform Workaround:
you can use multiple set of  ... No limit to number of control to put int ... If some change doesn't show immediately, ... No running different Forms in chain caption of Button (ie Menu command) star ... NumericalTextBox does not let to input e ... Inform 8.0 No numeric input with a Mask and a range ... Manual ruled by coder in TextChanged eve ... No prefixed range of characters accepted ... Manual ruled by coder in TextChanged eve ... No Integer or Float or Exponential optio ... Manual ruled by coder in TextChanged eve ... No  multiline text control that let us t ... No Child form: That's a limitation of QB ...
hide

Inform 7.0 cookbook

by TempodiBasic

hide
Interface
hide
Toolbar
hide
Inform Toolbar from which you can take the control to draw on the form
hide
Label
hide
TextBox
hide
NumberTextbox
hide
Checkbox
hide
Radiobutton
hide
Listbox
hide
DropDownListBox
hide

Q&A

hide
Bugs & Issue